﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;

namespace Colorful.Furniture.Permissions;

/// <summary>
///  数据权限
/// </summary>
public interface IDataPermissionProvider: ITransientDependency
{
    /// <summary>
    ///  类型
    /// </summary>
    int Type { get; }

    /// <summary>
    ///  获取权限点
    /// </summary>
    /// <param name="context">数据权限上下文</param>
    /// <returns></returns>
    Task<List<Guid>> GetPermissionPointsAsync(DataPermissionContext context);
}